package com.cy.stone.framework.web.advice;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;

import java.io.InputStream;

/**
 * @author Wings
 * @since 2023-12-10
 */
@Data
@AllArgsConstructor
public class DecryptHttpMessage implements HttpInputMessage {

    private InputStream body;
    private HttpHeaders httpHeaders;

    @Override
    public InputStream getBody() {
        return this.body;
    }

    @Override
    public HttpHeaders getHeaders() {
        return this.httpHeaders;
    }
}
